//
//  HYBaseHttpTools.h
//  广告页
//
//  Created by YYY on 2017/2/17.
//  Copyright © 2017年 成品家（北京）网路科技有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>

//请求成功
typedef void(^NetworkRequestSuccess)(NSDictionary *responseObject);
//请求失败
typedef void(^NetworkRequestFail)(NSError *error);
//请求进度
typedef void (^NetworkProgress)(int64_t bytesRead,
int64_t totalBytesRead);

typedef NS_ENUM(NSInteger,CurrentNetworkStatus)
{
    NetworkStatusUnknown          = -1,//未知网络
    NetworkStatusNotReachable     = 0,//网络无连接
    NetworkStatusReachableViaWWAN = 1,//2，3，4G网络
    NetworkStatusReachableViaWiFi = 2,//WIFI网络
};

@interface HYBaseHttpTools : NSObject

+(HYBaseHttpTools *)shareHYBaseHttpTools;

//post请求
/*网络请求*/
-(void)commonInterfaceRequestHttpToolPostConvertList:(NSMutableDictionary *)parameters urlString:(NSString *)urlString success:(NetworkRequestSuccess)success fail:(NetworkRequestFail)fail;


@end
